import config from "@/config"
import http from "@/utils/request"

export default {
    edit: {
        url: `${config.API_URL}/menuDataPower/edit`,
        name: "新增菜单数据权限",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    query: {
        url: `${config.API_URL}/menuDataPower/query`,
        name: "根据角色ID、权限ID查询菜单数据权限",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    batchEdit: {
        url: `${config.API_URL}/menuDataPower/batchEdit`,
        name: "批量新增角色权限",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    deleteMenuDataPower: {
        url: `${config.API_URL}/menuDataPower/deleteMenuDataPower`,
        name: "删除角色菜单数据权限",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    }
}
